package com.gcxy.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class pageDTO {
    @NotNull(message = "不能为空")
    @Min(value=1,message = "最小为1")
    private Integer page=1;
    @NotNull(message = "不能为空")
    @Min(value=10,message = "最小为10")
    private Integer pageSize=10;
}
